﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MTQ.Model
{

    //public partial class View_B_Solution
    //{
    //    public string B_SolutionAvailableName { get; set; }
    //}


    //public partial class B_SolutionType
    //{
    //    public string B_SolutionTypeAvailableName { get; set; }
    //}

    //public partial class View_B_Partner
    //{
    //    public string B_PartnerAvailableName { get; set; }
    //}

    //public partial class B_SolutionType
    //{
    //    public string B_SolutionTypeAvailableName { get; set; }
    //}

    //public partial class B_SolutionType
    //{
    //    public string B_SolutionTypeAvailableName { get; set; }
    //}

    public static class Available
    {
        public static string Enable = "启用";
        public static string Disable = "禁用";
        public static string UnKnow = "";

        public static string GetAvailable(string B_Available)
        {
            return B_Available == "Y" ? Enable : B_Available == "N" ? Disable : UnKnow;
        }

        public static string _Available(this string B_Available)
        {
            return GetAvailable(B_Available);
        }

    }

}
